import request from '@/utils/request'

// 查询个人用户充值列-新增列表
export function listChongzhiliebiao(query) {
  return request({
    url: '/passenger/chongzhiliebiao/list',
    method: 'get',
    params: query
  })
}

// 查询个人用户充值列-新增详细
export function getChongzhiliebiao(flowId) {
  return request({
    url: '/passenger/chongzhiliebiao/' + flowId,
    method: 'get'
  })
}

// 新增个人用户充值列-新增
export function addChongzhiliebiao(data) {
  return request({
    url: '/passenger/chongzhiliebiao',
    method: 'post',
    data: data
  })
}

// 修改个人用户充值列-新增
export function updateChongzhiliebiao(data) {
  return request({
    url: '/passenger/chongzhiliebiao',
    method: 'put',
    data: data
  })
}

// 删除个人用户充值列-新增
export function delChongzhiliebiao(flowId) {
  return request({
    url: '/passenger/chongzhiliebiao/' + flowId,
    method: 'delete'
  })
}
